package Teach;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.01.18.10.22
 */
public class Pj2 {
    public static void main(String[] args) {
        try(FileInputStream fis =new FileInputStream("my.txt")){
            byte[] buf=fis.readAllBytes();
            fis.read(buf);
            System.out.println(new String(buf));
        } catch (IOException e) {
            e.printStackTrace();
        }



    }
}
